package Control;

import GUI.Utils;

public class DialogEpisode implements Visualizable{
	private Episode episode;
	private Integer appearances;
	private Integer dialog;
	
	
	public DialogEpisode() {
		super();
		
	}


	public DialogEpisode(Episode episode, Integer appearance, Integer dialog) {
		super();
		this.episode = episode;
		this.appearances = appearance;
		this.dialog = dialog;
	}


	public Episode getEpisode() {
		return episode;
	}


	public void setEpisode(Episode episode) {
		this.episode = episode;
	}


	public Integer getAppearance() {
		return appearances;
	}


	public void setAppearance(Integer appearance) {
		this.appearances = appearance;
	}


	public Integer getDialog() {
		return dialog;
	}


	public void setDialog(Integer dialog) {
		this.dialog = dialog;
	}


	@Override
	public String valueLabel() {
		return "dialog";
	}


	@Override
	public Integer value() {
		return dialog;
	}


	@Override
	public Integer time() {
		return episode.getNumEpisode();
	}


	@Override
	public String timeLabel() {
		return episode.getName();
	}


	@Override
	public Integer absoluteTime() {
		return Utils.episodes.indexOf(episode);
	}
	
	
	

}
